﻿@model List<MyBlog2.Models.Article>
@{
    ViewData["Title"] = "搜索结果";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div class="cl-cantainer container">
    <div class="row" style="align-items:center">
        <div class="col-md-9 cl-left" style="margin-left:auto;margin-right:auto;">

            <div class="cl-card">
                <div class="row">
                    <div class="cl-artical-content">
                        <h5 style="color:#FF9400;">搜索结果：</h5>
                    </div>
                </div>
            </div>

            @* 文章列表 *@
            @if (Model != null)
            {
                @foreach (var art in Model)
                {
                    <div class="cl-card">
                        <div class="row">
                            <div class="col-lg-12 cl-card-main" style="padding:0 30px 0 30px;line-height:30px;">
                                <h3 class="cl-card-main-title"><a asp-controller="Home" asp-action="Detial" asp-route-id="@art.Id">@art.Title</a></h3>
                                <p class="cl-card-main-info">导读&nbsp; &nbsp; @art.Description</p>
                                <div class="row">
                                    <span style="margin-right: 25px; color: #999; font-size: 14px; ">
                                        <img src="~/images/admin.jpg" style="        width: 24px;
    height: 24px;
    border-radius: 5px;
    margin: 0 0 8px 0;" />
                                        ※听雨※
                                    </span>
                                    <span style="margin-right:25px;color:#999;font-size:14px;">
                                        更新时间：@art.UpdateTime
                                    </span>
                                    <span style="margin-right:25px;color:#999;font-size:14px;">
                                        浏览次数：@art.Views
                                    </span>

                                </div>

                            </div>
                        </div>
                    </div>
                }
            }

        </div>
    </div>
</div>
